
import {USERINFO} from '../const'

let user = {name:'as'};

export const userInfo = (state=user,action)=>{
    switch (action.type) {
        case USERINFO:
            console.log('userinfo...',action,state);
            return action.userInfo;
        default:
            return state;
    }
}